﻿using Lamex.Base.Framework.BaseAbs;
using Lamex.SystemManager.Bridge;
using Lamex.SystemManager.Interfaces;
using Lamex.SystemManager.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Lamex.SystemManager.BLL
{
    public class Sys_Role : BaseBLL<RoleInfo>
    {
        public ISys_Role dal = null;
        public Sys_Role()
	   {
           base.Init(this.GetType().FullName, System.Reflection.Assembly.GetExecutingAssembly().GetName().Name);
           //if (BridgeFactory.BridgeType == BridgeType.ADODirect)
               dal = new ADODirect_Sys_Role().GetInstance();


           //if (BridgeFactory.BridgeType == BridgeType.ADODirect)
           //    dal = new UserChannel();
               
       }
      public  List<RoleInfo> GetRolesByCompany(string companyId)
        {
           return dal.GetRolesByCompany(companyId);
        }
    }
}
